$(function () {
    var user = null, html = [], thisPage = null;
    var walletRechargePage = function () {
        this.init();
    };
    walletRechargePage.prototype = {
        init: function () {
            this.initData();
            this.bindEvent();
        },
        initData: function () {

        },
        bindEvent: function () {
            //后退
            $("#back").on("tap", function () {
                back();
            });
            //清除输入
            $("#clear").on("tap", function () {
                $("input").val("");
            });
            $("#tramount,#paypsd").on("input", function () {
                if ("" == $("#tramount").val() ||
                    "" == $("#paypsd").val()) {
                    $("#rechargeNow").addClass("gray_color").unbind();
                } else {
                    $("#rechargeNow").removeClass("gray_color").unbind().bind("tap", function () {
                        alert("ss");
                    });
                }


            });


        }
    };
    thisPage = new walletRechargePage();
});
